package com.qf.czh.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

//年假
public class AnnualLeave implements Serializable {
    private Integer id;
    private String number;
    private String vacationtype;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date starttime;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date endtime;
    private String reason;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createtime;
    private Integer userid;
    private String opinion;

    public AnnualLeave() {
    }

    public AnnualLeave(Integer id, String number, String vacationtype, Date starttime, Date endtime, String reason, String status, Date createtime, Integer userid, String opinion) {
        this.id = id;
        this.number = number;
        this.vacationtype = vacationtype;
        this.starttime = starttime;
        this.endtime = endtime;
        this.reason = reason;
        this.status = status;
        this.createtime = createtime;
        this.userid = userid;
        this.opinion = opinion;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getVacationtype() {
        return vacationtype;
    }

    public void setVacationtype(String vacationtype) {
        this.vacationtype = vacationtype;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @Override
    public String toString() {
        return "AnnualLeave{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", vacationtype='" + vacationtype + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", reason='" + reason + '\'' +
                ", status='" + status + '\'' +
                ", createtime=" + createtime +
                ", userid=" + userid +
                ", opinion='" + opinion + '\'' +
                '}';
    }
}
